<?php
use think\facade\Route;

Route::pattern([
    'name' => '\w+',
    'id' => '\d+',
    'cid' => '\d+',
    'tid' => '\d+',
    'page' => '\d+',
    'year' => '\d+',
    'month' => '\d+',
    'day' => '\d+',
]);

Route::get('test', 'index/test');

Route::get('/index/:cid', 'index/index');
Route::get('/index', 'index/index');
Route::get('/', 'index/index');
Route::get('/topic/:tid/:id', 'topic/sun');
Route::get('/topic/:tid', 'topic/index');
Route::get('/article/list', 'article/index');
Route::get('/<year>-<month>-<day>/:id', 'index/article/detail');

// Route::miss('public/miss');
Route::miss(function() {
    return '404 Not Found!';
});